package com.woniu.dao;

import com.woniu.entity.WebLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface LogDao {

    @Insert("insert into log (ip,address,operating_system,browser,action,time)" +
            "values (#{ip}, #{address}, #{operatingSystem}, #{browser}, #{action}, #{time})")
    void addLog(WebLog log);


    List<WebLog> selectAll(String action, Date startTime, Date endTime);
}
